﻿using AttributeRouting.Web.Http;
//using log4net;
using System;
using System.Web;
using System.Web.Security;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using Water.Model;

namespace Water.RestService.Controllers
{
    public class LogonController : ApiController
    {
        [GET("GetPassValidation/{uname}/{pass}")]
        public string GetPassValidation(string uname, string pass)
        {
            string logname = uname;
            if (!Membership.ValidateUser(uname, pass))
            {
               logname = "NONE";
            }
            return logname;
        }

    }
}
